package com.certificationManager.client.presenter;

import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.layout.AccordionLayout;

/**
 * @author Benjamin Barbier
 *
 */
public class LeftMenu extends ContentPanel {

	public LeftMenu() {
		
		this.setLayout(new AccordionLayout());
		
//		this.setCollapsible(true);
//		this.setAnimCollapse(true);
		this.setHeaderVisible(false);
		
		ContentPanel profil = new ContentPanel();
		profil.setHeading("Votre profil");
		profil.setBorders(false);  
		profil.setBodyStyle("fontSize: 12px; padding: 6px");  
		profil.addText("Votre compte/ vos tests/ info");
		profil.addText("vos tests");
		profil.addText("info");
		profil.addText("...");
		
		this.add(profil);
		
		ContentPanel progression = new ContentPanel();
		progression.setHeading("Votre progression");
		progression.setBorders(false);
		progression.setBodyStyle("fontSize: 12px; padding: 6px"); 
		progression.addText("blablatrhbla2");
		progression.addText("blablabdfhla2");
		progression.addText("blablaeblfdhdfha2");
		progression.addText("blablergherhabla2");
		progression.addText("blablberberabla2");
		progression.addText("blablarhtjtrjubla2");
		this.add(progression);
		
		ContentPanel certifications = new ContentPanel();
		certifications.setHeading("Vos certifications");
		certifications.setBorders(false);
		certifications.setBodyStyle("fontSize: 12px; padding: 6px"); 
		certifications.addText("blablabla1");
		certifications.addText("blablabla2"); 
		certifications.addText("blablabla3"); 
		certifications.addText("blablabla4"); 
		certifications.addText("blablabla5"); 
		certifications.addText("blablabla"); 
		this.add(certifications);
		
		this.setStyle();
		
	}
	
	private void setStyle() {
		this.setWidth("250px");
		this.setHeight("400px");
	}
	
}
